package com.tmall.pojo;

import java.io.Serializable;
import java.util.List;

/**
 * (类别)实体类
 *
 * @author 吕冰星
 * @since 2020-11-26 21:50:03
 */
public class Category implements Serializable {
    private static final long serialVersionUID = -72184919482255489L;

    private Integer id;

    private String name;

    List<Product> products;

    List<List<Product>> productsByRow;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public List<Product> getProducts() {
        return products;
    }

    public void setProducts(List<Product> products) {
        this.products = products;
    }

    public List<List<Product>> getProductsByRow() {
        return productsByRow;
    }

    public void setProductsByRow(List<List<Product>> productsByRow) {
        this.productsByRow = productsByRow;
    }

    @Override
    public String toString() {
        return "Category{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", products=" + products +
                ", productsByRow=" + productsByRow +
                '}';
    }
}